//
//  CLSQLiteManager.h
//  CLBrowser
//
//  Created by 梁慧聪 on 2017/4/6.
//  Copyright © 2021年 梁慧聪. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CLSQLiteHeader.h"

#define CL_IN_DATABASE(db, routine) do {                    \
    dispatch_async(self.synchQueue, ^{                      \
        [self.databaseQueue inCLDatabase:^(CLDatabase *db) {\
            routine;                                        \
        }];                                                 \
    });                                                     \
} while (0)

@interface CLSQLiteManager : NSObject

@property (nonatomic, strong, readonly) CLDatabaseQueue *databaseQueue;
@property (nonatomic, strong, readonly) dispatch_queue_t synchQueue;

- (instancetype)initWithPath:(NSString *)inPath;
- (void)databaseManagerDidCreated;

@end
